package com.yafeng.logic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author cn.classbao
 * @since 2020-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BaoRbacMenu implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 菜单ID
     */
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单URl
     */
    private String menuUrl;

    /**
     * 父节点ID
     */
    private Integer menuFid;

    /**
     * 菜单排序
     */
    private Integer menuSort;

    /**
     * 菜单图标
     */
    private String menuIcon;

    /**
     * 类型：btn|dir|menu
     */
    private String menuType;

    /**
     * 访问权限的标识
     */
    private String menuShiro;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 子节点
     */
    private List<BaoRbacMenu> children;


}
